﻿using RayDen.Library.Entity;

namespace RayDen.RayEngine.Corrector.Types
{
    public class FrameConfiguration : ConfigurableEntity
    {
        
        public int Width;
        public int Height;
        public int SamplesPerPass;
        public bool LowLatency;

        public RayEngineScene Scene;

        public int MaxSamplesPerPixel;
        public string FramePath, ImageSavePath;
        public bool SaveImage;

        public FrameConfiguration()
        {
            //Width = GlobalConfiguration.Instance.
            SamplesPerPass = 1;
        }

        public FrameConfiguration(FrameConfiguration parent) : base(parent)
        {
            SamplesPerPass = 1;
            this.Width = parent.Width;
            this.Height = parent.Height;
            this.MaxSamplesPerPixel = parent.MaxSamplesPerPixel;
            this.FramePath = parent.FramePath;
            this.ImageSavePath = parent.ImageSavePath;
            this.SaveImage = parent.SaveImage;
        }
    }
}